Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compose POC #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Compose POC #51

wants to merge 1 commit into from

Conversation

Dominaezzz
Copy link

Starts #40 .

I've only tried this on Linux. I'm curious to see if this works on other OSes, as I can't currently test this.

Just run any of these:

  • ./gradlew :libui-compose:runReleaseExecutableLinux
  • ./gradlew :libui-compose:runReleaseExecutableMacosx
  • ./gradlew :libui-compose:runReleaseExecutableWindows

I managed to support some widgets and groups however there's quite a few bits missing.
I'm not sure how to pass group widget attributes from the child to the parent's applier. Stuff like isStretchy and tabLabel.

A lot of the group widgets don't map nicely to compose but there are workarounds at least.

@e13mort
Copy link

e13mort commented Aug 29, 2023

Great job! Any ideas how it could evolve?

@Dominaezzz
Copy link
Author

Hi @e13mort, must've missed the notification. I haven't really looked at this much since I've made the PR. I'm not sure this could evolve very far tbh. libui is too rigid for Compose. Having to recreate a parent every time some component is added/removed from the composition feels kinda ridiculous.

@KotlinGeekDev
Copy link

Please @Dominaezzz what do you think of projects like Calf and Compose-look-and-feel? Are they ways to evolve what this PR aims to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants